"""

"""
import threading
import requests

link = 'http://127.0.0.1:8000/blog/test/'


def test_request(mark, url=None):
    print('start...', mark)
    response = requests.get(url)
    print(response.json())


# for n in range(5):
#     test_request()

t1 = threading.Thread(target=test_request, kwargs={'mark': '1', 'url': link})
t2 = threading.Thread(target=test_request, kwargs={'mark': '2', 'url': link})

t1.start()
t1.join()
t2.start()

print(threading.active_count())
print(threading.current_thread())
print(threading.enumerate())
print(threading.get_ident())
